<%@ page 
language="java" 
import="java.util.*" 
import="com.csd.helper.IConstant"
import="com.csd.vo.UserVO"
pageEncoding="UTF-8"
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String info = request.getParameter("info");
String to = request.getParameter("to");

if(info==null || info.length()==0)
	info = (String)request.getAttribute("info");

if(info==null || info.length()==0)
	info = "您刚才的请求发生了错误";

if(to==null || to.length()==0)
	to = (String)request.getAttribute("to");

if(to==null || to.length()==0)
{
	to = path + "/common/register.jsp";
	HttpSession s = request.getSession();
	UserVO uvo =  (UserVO)s.getAttribute(IConstant.userVO);
	if(uvo!=null )
	{
		if(uvo.getType().equals(IConstant.teamRole))
		{
			if(info.equals("文件太大了，请重新选择小于5MB的文件上传"))
				
				to="projectInApply.action";
			
			else
				
				to = "welcomeTeamProjectInfoShow.action";
		}
		
		if(uvo.getType().equals(IConstant.teacherRole))
		{
			to = path + "/teacher/welcome.jsp";
		}
		
		if(uvo.getType().equals(IConstant.managerRole))
		{
			to = path + "/admin/welcome.jsp";
		}
	}
}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="REFRESH" content="2;url=<%=to %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=path %>/common/css/rpms_right.css" />
</head>
  <body>
  	<div class="main">  
  		<h1>系统信息：</h1>
  		<hr />
  		<h3><%=info %></h3>
     	<br />
     	<p align="center">如果您的浏览器没有自动跳转，请&nbsp;<a href="<%=to %>">单击这里</a></p>
    </div>
</body>
</html>
